From 532f0ae513f971c18c47ae5f8f7c9c924acb6610 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 5 Jun 2009 09:30:36 +0100 Subject: [PATCH] xend: Convert the type of superpages to integer to fix a TypeError. Signed-off-by: Masaki Kanno --- tools/python/xen/xend/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 1ecd0a28a4..8364df30b7 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -665,7 +665,7 @@ class LinuxImageHandler(ImageHandler): ImageHandler.configure(self, vmConfig) self.vramsize = int(vmConfig['platform'].get('videoram',4)) * 1024 self.is_stubdom = (self.kernel.find('stubdom') >= 0) - self.superpages = vmConfig['superpages'] + self.superpages = int(vmConfig['superpages']) def buildDomain(self): store_evtchn = self.vm.getStorePort() -- 2.30.2